<%@ page contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>
<%@ include file="/common/init.jsp"%>
<div id="vvconversionlist">
	<div class="vvbt" style="margin-top: 20px;">
		<table width="840" border="0" align="center" cellpadding="0" cellspacing="0">
			<tr>
				<td width="240" class="vvd">转给</td>
				<td width="150" class="vvd">金额</td>
				<td width="150" class="vvd">类型</td>
				<td width="300" class="vvd">时间</td>
			</tr>
		</table>
	</div>
	<table width="840" border="0" align="center" cellpadding="0" cellspacing="0">
		<c:forEach var="conversion" items="${page.result }">
			<tr>
				<td width="200" class="vv">${conversion.toUserId}</td>
				<td width="120" class="vv">${conversion.amount}</td>
				<td width="120" class="vv">${conversion.accountType}</td>
				<td width="200" class="vv">
				<fmt:formatDate value="${conversion.postTime}" pattern="yyyy-M-dd HH:mm:ss" /></td>
			</tr>
		</c:forEach>
	</table>
	<%@ include file="/common/turnpage.jsp"%>
</div>
<script type="text/javascript">
	function frontpage(pageNo) {
		$.ajax({
			type : 'POST',
			url : "${ctx}/vvconvertlist.action?pageNo=" + pageNo,
			dataType : "html",
			success : function(data, status) {
				if ($.trim(data) != '') {
					$("#vvconversionlist").html(data);
				}
			},
			error : function(data, status, e) {
				alert(e.name);
			}
		});
		//window.frames["exchangelist"].location.href = "${ctx}/exchangelist.action?pageNo="+pageNo;
	}

	function nextpage(pageNo) {
		$.ajax({
			type : 'POST',
			url : "${ctx}/vvconvertlist.action?pageNo=" + pageNo,
			dataType : "html",
			success : function(data, status) {
				if ($.trim(data) != '') {
					$("#vvconversionlist").html(data);
				}
			},
			error : function(data, status, e) {
				alert(e.name);
			}
		});
		//location = "${ctx}/exchangelist.action?pageNo="+pageNo;
		//window.frames["exchangelist"].location.href = "${ctx}/exchangelist.action?pageNo="+pageNo;
	}
</script>